<form id="pagerForm" action="__URL__/search" method="post">
	<input type="hidden" name="pageNum" value="1"/>
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="_order" value="{$_REQUEST._order}"/>
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}"/>
</form>
	<div class="pageHeader">
		<form rel="pagerForm" method="post" action="__URL__/search" onsubmit="return dwzSearch(this, 'dialog');">
		<div class="searchBar">
		<!-- 
		<ul class="searchContent">
			<li>
				<label>合同标题：</label>
				<input type="text" name="subject" class="medium" value="{$subject}">
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
		 -->
	   </div>
		</form>
	</div>
	
	<div class="pageContent">

     <table class="table" width="100%" targetType="dialog" layoutH="118" >
		<thead>
			<tr>			
				<th width="100" align="center">合同编号</th>
				<th width="150" align="center">合同标题</th>
				<th width="100" align="center">合同金额</th>
				<th width="100" align="center">合同来源</th>
				<th width="80" align="center">查找带回</th>
		 	</tr>
		</thead>
		<tbody>
	 		<volist id="vo" name="list1">
				<tr target="sid_user" rel="{$vo.id}">	
				<td><a>{$vo['contractno']}</a></td>				
				<td>{$vo['subject']}</td>
				<td>{$vo['contractamount']}</td>
				<td><eq name="vo['projectid']" value="0">投标合同<else/><a href="__URL__/lookup/id/{$vo['projectid']}" target="dialog">销售合同</a></eq></td>
				<td>
					<a class="btnSelect" href="javascript:$.bringBack({ controlid:'{$vo.id}',secondname:'{$vo.secondname}',contractno:'{$vo.contractno}',price:'{$vo.price}',total:'{$vo.totalprice}',seller:'{$vo.firstname}',haspay:'{$vo.apayment}',nopay:'{$vo.wpayment}' })" title="查找带回">选择</a>
				</td>
				</tr>
			</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="dwzPageBreak({targetType:dialog, numPerPage:'24'})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条,共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
		</div>
	</div>
</div>